package MP.ASTs;

import MP.CompilationException;

public class ProgramAST extends AST{
		public VarDeclPartAST 	v;
		public ProDeclPartAST 	p;
		public CompStatAST	c;
		public ProgramAST(VarDeclPartAST var, ProDeclPartAST pro, CompStatAST com) {
			v = var;
			p = pro;
			c = com;
			v.parent = p.parent =  c.parent = this;		
		}
		
		public Object visit(Visitor v, Object o) throws CompilationException{
			return v.visitProgramAST(this,o);		
	  }
}
